<template>
  <div class="logo-page">
    <div class="center">
      <div class="text-top">
        <span>什</span>
        <span>么</span>
        <span>值</span>
        <span>得</span>
        <span>买</span>
      </div>
      <div class="text-bottom">
        <span>帮</span>
        <span>/</span>
        <span>你</span>
        <span>/</span>
        <span>买</span>
        <span>/</span>
        <span>得</span>
        <span>/</span>
        <span>值</span>
      </div>
    </div>
    <div class="bottom">
      <div class="logo"><img :src="imgUrl" width="28" height="28"/></div>
      <div class="text">
        <div class="text-top">
          <span>什</span>
          <span>么</span>
          <span>值</span>
          <span>得</span>
          <span>买</span>
        </div>
        <div class="text-bottom">
          <span>S</span>
          <span>M</span>
          <span>Z</span>
          <span>D</span>
          <span>M</span>
          <span>.</span>
          <span>C</span>
          <span>O</span>
          <span>M</span>
        </div>
      </div>
    </div>
  </div>
</template>

<script type="text/ecmascript-6">
export default {
  name: 'logo-page',
  data () {
    return {
      imgUrl: require('@/assets/smzdmLogo.jpg')
    }
  },
  activated () {
    setTimeout(() => {
      this.$router.push({ name: 'homePage' })
    }, 2000)
  }
}
</script>

<style lang="stylus" rel="stylesheet/stylus" scoped>
.logo-page
  position: fixed
  left: 0
  right: 0
  top: 0
  bottom: 0
  .center
    position: absolute
    top: 40%
    left: 50%
    transform: translate3d(-50%, -50% , 0)
    color: #797979
    font-size: 24px
    line-height: 24px
    .text-top
      margin-bottom: 6px
      display: flex
      justify-content: space-between
      span
        flex: 1
    .text-bottom
      display: flex
      justify-content: space-around
      span
        flex: 1
        font-size: 16px
        line-height: 16px
        text-align: center
  .bottom
    position: absolute
    bottom: 30px
    left: 50%
    transform: translate3d(-50%, 0 , 0)
    .logo
      display: inline-block
    .text
      color: #F04847
      display: inline-block
      vertical-align: top
      .text-top
        display: flex
        justify-content: space-between
        span
          flex: 1
          font-size: 14px
          line-height: 14px
      .text-bottom
        display: flex
        justify-content: space-around
        span
          flex: 1
          font-size: 12px
          line-height: 14px

</style>
